package com.sheng.web.controller;

import com.sheng.service.UserService;
import com.sheng.service.impl.UserServiceImpl;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
   @Test
    public void test01(){
       ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationcontext.xml");
       UserService userService = (UserService) applicationContext.getBean("userService");

       userService.save();
   }
}
